import { Injectable } from '@angular/core';

@Injectable()
export class TimeService {
 time: Time[];
 person: Person[];
 all: Person[];
 constructor(){

   this.time=[
     new Time(0,'08:20-08:25'),
     new Time(1,'08:25-08:30'),
     new Time(2,'08:35-08:40'),
     new Time(3,'09:00-09:05'),
     new Time(4,'09:20-09:25'),
     new Time(5,'09:25-09:30'),
     new Time(6,'10:35-08:40'),
     new Time(7,'11:00-11:05')
   ];
   this.person = [
     new Person(0, '小明', false),
     new Person(1, '小刘', false)
   ];
   this.all = [
    new Person(-1, '所有就诊人', false)
  ];
 }
}
 class Time{
  constructor(public timeId: number,public time: string){}
}
class Person{
  constructor(public  id: number, public name: string, public done: boolean){}
}
